//
// Created by martin on 4/26/22.
//

#ifndef MUDUO_IDLECONNECTIONENTRY_H
#define MUDUO_IDLECONNECTIONENTRY_H

#include "muduo/base/copyable.h"
#include "muduo/net/TcpConnection.h"

#include <memory>

struct IdleConnectionEntry : muduo::copyable
{
    explicit IdleConnectionEntry(const muduo::net::TcpConnectionWeakPtr& weakConn)
            : weakConn_(weakConn)
    { }

    ~IdleConnectionEntry();
    muduo::net::TcpConnectionWeakPtr weakConn_;
};

typedef std::shared_ptr<IdleConnectionEntry> IdleConnectionEntryPtr;
typedef std::weak_ptr<IdleConnectionEntry> WeakIdleConnectionEntryPtr;

#endif //MUDUO_IDLECONNECTIONENTRY_H
